\documentclass[A4paper]{article}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}     
\usepackage{graphicx}
\usepackage{pstricks, pstricks-add, pst-eucl}
\usepackage{color}
\usepackage{listings}
\usepackage{./Packages/algorithm}
\usepackage{amsmath,amssymb, mathrsfs}
%\usepackage{varioref}
%\usepackage[amsmath,thmmarks]
%{./Packages/ntheorem}
\usepackage{./Packages/algorithmic}
\usepackage{alltt}
\usepackage{float}
%\usepackage{url}
%\usepackage{wallpaper}
\usepackage[top=2.5cm, bottom=2.5cm, left=1.5cm, right=1.5cm]{geometry}
\usepackage{fancyhdr}

\definecolor{versaillesblue}{RGB}{61,148,227}
\definecolor{versaillesgreen}{RGB}{114,180,31}
\definecolor{vert}{rgb}{0.2,0.6,0.4} 
\definecolor{grey}{rgb}{0.95,0.95,0.95}

\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}

\lhead{\title } 
\chead
{\textbf{\textcolor{versaillesblue}{\rule[1pt]{50pt}{3pt}} }} \lfoot{\author}
\cfoot{
\begin{picture}(0,0)
\put(0,-17){\includegraphics[height=1cm]{./Images/logo_uvsq_footer.eps}}
\end{picture}
}
\rfoot{page \thepage\ sur \lastpage}

\begin{document}
%\theoremstyle{plain}
%\newtheorem{theo}{Théorème}
%\newtheorem{definition}{Définition}
%
%\theoremclass{proof}
%\theoremstyle{nonumberplain}
%\theorembodyfont{\upshape}
%\theoremseparator{}
%\newtheorem{proof}{Preuve}
%
%\theoremclass{proof_1}
%\theoremstyle{numberplain}
%\theorembodyfont{\upshape}
%\theoremseparator{}
%\newtheorem{proof_1}{Preuve}
%
%\theoremclass{theo_1}
%\theoremstyle{nonumberplain}
%\theoremseparator{}
%\newtheorem{theo_1}{Théorème}


%\newtheoremlisttype{list}%
%{\begin{trivlist}\item}
%{\item[##1 ##2 :]\ ##3\dotfill ##4}%
%{\end{trivlist}}


%\labelformat{theo}{le théorème~#1}
%\labelformat{definition}{la définition~#1}
\parindent=0pt
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
\renewcommand{\abstractname  }{Résumé du document}
\renewcommand{\tablename     }{Tableau}
\renewcommand{\figurename    }{Figure}
\renewcommand{\lstlistingname}{Programme}
\renewcommand{\lstlistlistingname}{~~~~\textcolor{black}{\textbf{Liste des programmes\\}}}
\renewcommand{\listfigurename}{~~~~\textcolor{black}{Liste des figures\\}}
\renewcommand{\listtablename }{~~~~\textcolor{black}{Liste des tableaux\\}} 
\renewcommand{\listalgorithmname}{~~~~\textcolor{black}{Liste des algorithmes\\}}
\renewcommand{\contentsname  }{~~~~\textcolor{black}{Sommaire \\}}
\renewcommand{\refname  }{~~~~\textcolor{black}{Références bibliographiques\\}}
%\renewcommand{\theoremlisttype  }[1]{~~~~\textcolor{black}{\textbf{Liste des théorèmes, définitions et preuves\\}}}
\pagestyle{empty}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Utiliser pour insérer du code dans le fichier
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\lstset{frame=single, language={[Visual]basic} , breaklines=true, 
basicstyle=\ttfamily,basicstyle=\scriptsize, 
keywordstyle=\color{blue}, %%%%%%%%%%%%%%% Couleur des mots clés
commentstyle=\color{vert}, %%%%%%%%%%%%%%% Couleur des commentaires
stringstyle=\color{red},   %%%%%%%%%%%%%%% Couleur des chaines
identifierstyle=\ttfamily }
%\pagecolor{versaillesgreen}
%\TileWallPaper{\paperwidth}{\paperheight}{./Images/pageblanche_background.eps}
\input{Info.tex}
\input{Titre.tex}
\pagebreak
\newpage
\null
\newpage
%\TileWallPaper{\paperwidth}{\paperheight}{./Images/sommairebis_background.eps}
%\ThisTileWallPaper{\paperwidth}{\paperheight}{./Images/sommaire_background.eps}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% A la fin du résumé, on change page
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\tableofcontents
\pagebreak

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Après la table des matières, si cela est nécessaire,
% on change page
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\pagestyle{fancy}
\setcounter{page}{1}
%\TileWallPaper{\paperwidth}{\paperheight}{./Images/page_background.eps}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%		Introduction
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Introduction}
\label{sec:Intro}
\input{./Sections/Introduction.tex}
\pagebreak

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%		Outils logiciels
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Les outils logiciel}
\label{sec:logiciel}
\input{./Sections/logiciel.tex}
\pagebreak

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%		Rappels sur signature, certificat
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Signatures et certificats}
\label{sec:SignCert}
\input{./Sections/SignCert.tex}
\pagebreak

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%		Présentation des protocoles existants
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Le protocole EMV}
\label{sec:EMV}
\input{./Sections/Protocole_EMV.tex}
\pagebreak

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%		Basic card
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{A propos de BasicCard}
\label{sec:Basic}
\input{./Sections/basic.tex}
\pagebreak

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%		Modélisation
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Modélisation et implémentation}
\label{sec:Model}
\input{./Sections/Modelisation.tex}
\pagebreak

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%		Conclusion
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Conclusion}
\label{sec:Conclusion}
\input{./Sections/Conclusion.tex}
\pagebreak

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%		Annexes
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\section{Annexes}
%\label{sec:Annexes}
%%\input{./Section/Annexes.tex}
%\pagebreak

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Si nécessaire, on saute une page pour insérer la bibliographie
% Les références doivent être indiquées dans un fichier à part
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\clearpage

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% On insère ici la liste des figures, la listes des tableaux,
%% celle des algorithmes et celles des programmes présents dans le 
%% rapport.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\pagebreak
\rhead{}
\chead{}
\lhead{}
\pagestyle{fancy}

%\TileWallPaper{\paperwidth}{\paperheight}{./Images/listebis_background.eps}
%\ThisTileWallPaper{\paperwidth}{\paperheight}{./Images/liste_background.eps}
%\addcontentsline{toc}{section}{Liste des théorèmes, définitions et preuves}
%\theoremlisttype{list}
%\listtheorems{definition,theo,proof_1} 
\pagebreak

%\ThisTileWallPaper{\paperwidth}{\paperheight}{./Images/liste_background.eps}
\addcontentsline{toc}{section}{Liste des images}
\listoffigures

%\ThisTileWallPaper{\paperwidth}{\paperheight}{./Images/liste_background.eps}
%\addcontentsline{toc}{section}{Liste des tableaux}
%\listoftables
%\pagebreak

%\ThisTileWallPaper{\paperwidth}{\paperheight}{./Images/liste_background.eps}
\addcontentsline{toc}{section}{Liste des algorithmes}
\listofalgorithms

%\ThisTileWallPaper{\paperwidth}{\paperheight}{./Images/liste_background.eps}
\addcontentsline{toc}{section}{Liste des programmes}
\lstlistoflistings
\pagebreak


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Les références doivent être indiquées dans un fichier à part
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\ThisTileWallPaper{\paperwidth}{\paperheight}{./Images/liste_background.eps}
\addcontentsline{toc}{section}{Références bibliographiques}
\bibliographystyle{plain}
\bibliography{./biblio}
\nocite{*}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Dernière page à mettre suivant le nombre de pages
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\pagebreak
\pagecolor{white}
\pagestyle{empty}
%\ThisTileWallPaper{\paperwidth}{\paperheight}{./Images/lastpage_background.eps}
\null

\end{document}